
* REPLICATION CODE: JENNINGS & WLEZIEN, 'THE COMPARATIVE TIMELINE OF ELECTIONS', AMERICAN JOURNAL OF POLITICAL SCIENCE *

* FIGURE A1. Number of Parties and Candidates for which there are Poll Data

use LONG_MI.dta, clear

drop if poll_==.
drop if daysbeforeED==0

collapse (count) poll_, by(daysbeforeED)

* 
twoway /*
*/ (line poll_ daysbeforeED if daysbeforeED<901) /*
*/  , scheme(s2mono) graphregion(color(white)) /*
*/  xtitle("Days Until Election") /*
*/  title("") /*
*/  ylabel(0(100)1100, gmax angle(horizontal)) /*
*/  ytick(0(100)1100) /*
*/  ytitle(N (Parties/Candidates)) /*
*/  xlabel(0(100)900) /*
*/  xscale(reverse) xscale(titlegap(2))

graph export FigA1.tif

